FormatCellsActionCommand Constructor(IWorksheet,StyleFormat,Reference[],Nullable<Boolean>,Boolean,Boolean)
In This Topic
Initializes a new instance of the
FormatCellsActionCommand class.
Syntax
'Declaration
Public Function New( _
ByVal As IWorksheet, _
ByVal As StyleFormat, _
ByVal () As Reference, _
ByVal As Nullable(Of Boolean), _
Optional ByVal As Boolean, _
Optional ByVal As Boolean _
)
'Usage
Dim worksheet As IWorksheet
Dim newStyleFormat As StyleFormat
Dim references() As Reference
Dim isMergedCell As Nullable(Of Boolean)
Dim center As Boolean
Dim across As Boolean
Dim instance As New FormatCellsActionCommand(worksheet, newStyleFormat, references, isMergedCell, center, across)
public FormatCellsActionCommand(
IWorksheet ,
StyleFormat ,
Reference[] ,
Nullable<bool> ,
bool ,
bool
)
Parameters
- worksheet
- The worksheet which this command attached to.
- newStyleFormat
- references
- The range which this command working to.
- isMergedCell
- center
- if set to
true
, the horizontal alignment of the specified range will be set to center. - across
- if set to
true
, merge cells in each row (or column) of the specified range as separate merged cells.
See Also